import static java.lang.Thread.sleep;

/**
 * Creat with IntelliJ IDEA
 * Description
 * User: mamba24
 * Date: 2022-08-10
 * Time: 15:22
 * To BE A Better Person-2020-3-2
 */
public class TestDemo {
    public static void main(String[] args) {
        Thread t=new Thread(()->{
            int i=0;
           while (i<4){
                i++;
           }
        });
       t.start();
       while(t.isAlive()){
           System.out.println(t.getState());
       }
       System.out.println(t.getState());
    }
}
